

{volist name="parenterm" id="data"}

<tr id="node_{$data.id}" class="parent_id_{$data.parent_id}">
    <td width="20" align="left">
        <input  name="deletec" id="deletec" type="checkbox"/>
    </td>
    <td>
        <input name="listorder[{$data.id}]" class="listorder"  type="text" data-orderid="{$data.id}"
               value="{$data.listorder}" style="width:35px;" />
    </td>
    <td style="text-align: left">{$data.id}</td>
    <td id="term_id_{$data.id}" class="{:$a = D('term')->hasChild_access($data.id)?'hasChild':''}">
        <?php  $countpath = D('Term')->depth_access($data['parent_id']); $path = (count(array_unique($countpath))); ?>
        <?php
        $str= '';
        for($i=0;$i<$path;$i++)
            {
                $str.="&nbsp;&nbsp;&nbsp;";
            }
        echo $str;
         ?>
        {:$a ? '<img src="__ADMINLTE__dist/img/colum1nx.gif" id="term_img_'.$data["id"].'" />' : '<span style="width:12px;display: inline-block;"></span>'}
        {$data.name}
    </td>


</tr>

{/volist}
